import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
// import Vant from 'vant'
import 'vant/lib/index.css'
import 'amfe-flexible'
// vant组件
import '@/utils/vant-ui.js'
// 自定义样式导入
import '@/styles/index.scss'
// 将ajax请求挂载
import request from '@/utils/request'
// 挂载eventBus
import EventBus from '@/eventBus/index.js'
// 导入封装的日期
import { getRelativeTime } from '@/utils/date-time.js'
Vue.prototype.$request = request
Vue.prototype.$eventBus = EventBus
Vue.config.productionTip = false
// 全局过滤器：封装日期
Vue.filter('relative', function (value) {
  return getRelativeTime(value)
})
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
